/**
 * 
 */
package org.scohen.juploadr.flickr;

import org.scohen.juploadr.ui.Task;

public class SleepTask extends Task {
    private int curr;

    public SleepTask(int seconds) {
        this.max = seconds * 10;
    }

    public String getTitle() {
        return "Sleeping...zzz...";
    }

    public void execute() {
        curr = 0;
        while (curr < max) {
            updateProgress(curr++);
            updateMessage();
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
            }
        }

    }

    public String getMessage() {
        return "Updating "
                + curr
                + " this is a really really long message, will it resize() I really don't know since it's a very long message... will it work?";
    }
}